swap two numbers using third variable in java